import { defineConfig } from "umi";

export default defineConfig({
  routes: [
    {
      path: "/",
      component: "@/pages/game/index",
      meta: { title: "主页游戏" },
      wrappers: ["@/pages/auth"],
    },
    {
      path: "/login",
      component: "@/pages/login/index",
      meta: { title: "登录" },
    },
  ],
  npmClient: "yarn",
  plugins: ["@umijs/plugins/dist/dva"],
  dva: {},
  history: {
    type: "hash",
  },
  theme: {
    "@primary-color": "#1897ff",
    "@font-normal-size": "14px",
  },
});
